package com.app.service.impl;

import com.app.mapper.PosterMapper;
import com.app.pojo.Poster;
import com.app.service.PosterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PosterServiceImpl implements PosterService {
    @Autowired
    PosterMapper posterMapper;

    @Override
    public List<Poster> showAll() {
        return posterMapper.list();
    }

    @Override
    public void insert(Poster poster) {
        posterMapper.insert(poster);
    }

    @Override
    public void delete(int img_id) {
        posterMapper.delete(img_id);
    }
}

